Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove admin user group #436

Merged
merged 3 commits into from
Jan 5, 2024
Merged

Conversation

JenySadadia
Copy link
Collaborator

With fastapi-users integration, User.is_superuser flag has been introduced to identify admin users.
This eliminates the requirement for creating any specific user group for admin users. Hence, discard the method to setup admin user group from the script.

Jeny Sadadia added 2 commits December 18, 2023 17:40
With `fastapi-users` integration, `User.is_superuser`
flag has been introduced to identify admin users.
This eliminates requirement for creating any specific
user group for admin users. Hence, discard method
to setup `admin` user group from the script.

Signed-off-by: Jeny Sadadia <[email protected]>
API endpoints have been reworked to use `User.is_superuser`
flag to determine admin users and not using `admin` user
group anymore. Hence, drop check for `admin` user group
in PUT `/user` handler.

Signed-off-by: Jeny Sadadia <[email protected]>
@JenySadadia JenySadadia linked an issue Dec 20, 2023 that may be closed by this pull request
4 tasks
Admin users are no logner required to be added to
`admin` user group. Update unit tests and e2e tests
for user creation accordingly. Discard e2e test to
create and get `admin` user group.

Signed-off-by: Jeny Sadadia <[email protected]>
@JenySadadia JenySadadia added this pull request to the merge queue Jan 5, 2024
Merged via the queue into kernelci:main with commit cbae5f6 Jan 5, 2024
4 checks passed
@JenySadadia JenySadadia deleted the remove-admin-group branch January 5, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop user group admin
2 participants